gtkbuilder: add accessibility role declaration
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 19 Mar 2018 13:11:16 +0000 (14:11 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 19 Mar 2018 17:07:06 +0000 (18:07 +0100)
commitbd986f95342ebf9c98ce87760c13d1bbafb26a7d
treef9eee62b9d1cf08524c06662fb573a0d437a49f1
parent1a1373779f87ce928a45a9371512d207445f615f
gtkbuilder: add accessibility role declaration

This allows to override the role declared to the atk stack.  For
instance,

<accessibility>
  <role type="static"/>
</accessibility>

allows to tell the accessibility stack that a label is just a message in
a message box.

Fixes #109
demos/gtk-demo/listbox.ui
demos/widget-factory/widget-factory.ui
gtk/gtkwidget.c
testsuite/a11y/label-static.txt [new file with mode: 0644]
testsuite/a11y/label-static.ui [new file with mode: 0644]
testsuite/gtk/builder.c